<?php
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2017/4/19
 * Time: 16:01
 */

namespace app\manage\controller;


class SecondBuy extends Base
{
    //搜索
    public function _search(){
        $map = array();
        ($keyword = input('get.keyword')) && $map['title'] = ['like', '%'.$keyword.'%'];
        $status = -1;
        if(isset($_GET['status']) && $_GET['status'] !== ''){
            $status = input('get.status/d');
        }
        $status>=0 && $map['status'] = ['eq',$status];
        $this->assign('search', array(
            'status'  => $status,
            'keyword' => $keyword
        ));
        return $map;
    }
}